//
// Created by SN on 2020/1/11.
//

#include <stdio.h>

/**
 * 数组总大小: sizeof(arr)
 * 数组地址: &arr[0], +1跳过一个元素
 * 数组地址: &arr, +1跳过整个数组
 *
 */
int main() {

    int arr[5] = {10,20,30,40,50};
    printf("%d\n", sizeof(arr)); //20
    printf("%u\n", &arr);        //6356620
    printf("%u\n", &arr + 1);    //6356640
    printf("%u\n", &arr[0]);     //6356620
    printf("%u\n", &arr[1]);     //6356624
    printf("%u\n", &arr[1] + 1); //6356628

    return 0;
}